$(function(){
            

    $.ajax({
      url:"http://chst.vip:1234/api/getinlanddiscount",
      type:"get",
      data:{

      },
      success(res){
          let{result}=res
          console.log(result)
          let html=""
          result.forEach((item,index,array)=>{
              html+=`
    <li>
        <a href="inlandproduct.html?productid=${item.productId}&title=国内折扣" >
          <div class="picture">${item.productImg}</div>
          <div class="title">${item.productName}</div>
          <p class="price">${item.productPrice}</p>
          <p class="from">${item.productFrom}|${item.productTime}</p>
      </a>
  </li>
              `
          })
          $(".productList").html(html)
      },
      error(err){
          console.log(err)
      }
  })
})